package com.navinfo.tripanalysis.common.arithmetic.enums;

import com.google.common.collect.Range;

/**
 * 扭矩开度区间
 * @author machi
 * @create 2018/6/21
 */
public enum RangeTorqueEnum {
    RANGE_0(Range.closed(0,0)),
    RANGE_10(Range.openClosed(0,10)),
    RANGE_20(Range.openClosed(10,20)),
    RANGE_30(Range.openClosed(20,30)),
    RANGE_40(Range.openClosed(30,40)),
    RANGE_50(Range.openClosed(40,50)),
    RANGE_60(Range.openClosed(50,60)),
    RANGE_70(Range.openClosed(60,70)),
    RANGE_80(Range.openClosed(70,80)),
    RANGE_90(Range.openClosed(80,90)),
    RANGE_99(Range.open(90,100)),
    RANGE_100(Range.closed(100,100)),
    RANGE_VALID(Range.closed(0,100));

    private Range<Integer> range;

    RangeTorqueEnum(Range<Integer> range) {
        this.range = range;

    }

    public Range<Integer> getRange() {
        return range;
    }

}
